package com.suning.app.snpaasadmin.pojo;

import java.util.ArrayList;
import java.util.List;

public class TemSerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TemSerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTemIdIsNull() {
            addCriterion("tem_id is null");
            return (Criteria) this;
        }

        public Criteria andTemIdIsNotNull() {
            addCriterion("tem_id is not null");
            return (Criteria) this;
        }

        public Criteria andTemIdEqualTo(Integer value) {
            addCriterion("tem_id =", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotEqualTo(Integer value) {
            addCriterion("tem_id <>", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdGreaterThan(Integer value) {
            addCriterion("tem_id >", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_id >=", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdLessThan(Integer value) {
            addCriterion("tem_id <", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdLessThanOrEqualTo(Integer value) {
            addCriterion("tem_id <=", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdIn(List<Integer> values) {
            addCriterion("tem_id in", values, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotIn(List<Integer> values) {
            addCriterion("tem_id not in", values, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdBetween(Integer value1, Integer value2) {
            addCriterion("tem_id between", value1, value2, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_id not between", value1, value2, "temId");
            return (Criteria) this;
        }

        public Criteria andSerIdIsNull() {
            addCriterion("ser_id is null");
            return (Criteria) this;
        }

        public Criteria andSerIdIsNotNull() {
            addCriterion("ser_id is not null");
            return (Criteria) this;
        }

        public Criteria andSerIdEqualTo(Integer value) {
            addCriterion("ser_id =", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotEqualTo(Integer value) {
            addCriterion("ser_id <>", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdGreaterThan(Integer value) {
            addCriterion("ser_id >", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ser_id >=", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdLessThan(Integer value) {
            addCriterion("ser_id <", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdLessThanOrEqualTo(Integer value) {
            addCriterion("ser_id <=", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdIn(List<Integer> values) {
            addCriterion("ser_id in", values, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotIn(List<Integer> values) {
            addCriterion("ser_id not in", values, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdBetween(Integer value1, Integer value2) {
            addCriterion("ser_id between", value1, value2, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ser_id not between", value1, value2, "serId");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1IsNull() {
            addCriterion("default_val1 is null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1IsNotNull() {
            addCriterion("default_val1 is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1EqualTo(String value) {
            addCriterion("default_val1 =", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1NotEqualTo(String value) {
            addCriterion("default_val1 <>", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1GreaterThan(String value) {
            addCriterion("default_val1 >", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1GreaterThanOrEqualTo(String value) {
            addCriterion("default_val1 >=", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1LessThan(String value) {
            addCriterion("default_val1 <", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1LessThanOrEqualTo(String value) {
            addCriterion("default_val1 <=", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1Like(String value) {
            addCriterion("default_val1 like", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1NotLike(String value) {
            addCriterion("default_val1 not like", value, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1In(List<String> values) {
            addCriterion("default_val1 in", values, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1NotIn(List<String> values) {
            addCriterion("default_val1 not in", values, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1Between(String value1, String value2) {
            addCriterion("default_val1 between", value1, value2, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal1NotBetween(String value1, String value2) {
            addCriterion("default_val1 not between", value1, value2, "defaultVal1");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2IsNull() {
            addCriterion("default_val2 is null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2IsNotNull() {
            addCriterion("default_val2 is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2EqualTo(String value) {
            addCriterion("default_val2 =", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2NotEqualTo(String value) {
            addCriterion("default_val2 <>", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2GreaterThan(String value) {
            addCriterion("default_val2 >", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2GreaterThanOrEqualTo(String value) {
            addCriterion("default_val2 >=", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2LessThan(String value) {
            addCriterion("default_val2 <", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2LessThanOrEqualTo(String value) {
            addCriterion("default_val2 <=", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2Like(String value) {
            addCriterion("default_val2 like", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2NotLike(String value) {
            addCriterion("default_val2 not like", value, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2In(List<String> values) {
            addCriterion("default_val2 in", values, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2NotIn(List<String> values) {
            addCriterion("default_val2 not in", values, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2Between(String value1, String value2) {
            addCriterion("default_val2 between", value1, value2, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal2NotBetween(String value1, String value2) {
            addCriterion("default_val2 not between", value1, value2, "defaultVal2");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3IsNull() {
            addCriterion("default_val3 is null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3IsNotNull() {
            addCriterion("default_val3 is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3EqualTo(String value) {
            addCriterion("default_val3 =", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3NotEqualTo(String value) {
            addCriterion("default_val3 <>", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3GreaterThan(String value) {
            addCriterion("default_val3 >", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3GreaterThanOrEqualTo(String value) {
            addCriterion("default_val3 >=", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3LessThan(String value) {
            addCriterion("default_val3 <", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3LessThanOrEqualTo(String value) {
            addCriterion("default_val3 <=", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3Like(String value) {
            addCriterion("default_val3 like", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3NotLike(String value) {
            addCriterion("default_val3 not like", value, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3In(List<String> values) {
            addCriterion("default_val3 in", values, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3NotIn(List<String> values) {
            addCriterion("default_val3 not in", values, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3Between(String value1, String value2) {
            addCriterion("default_val3 between", value1, value2, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal3NotBetween(String value1, String value2) {
            addCriterion("default_val3 not between", value1, value2, "defaultVal3");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4IsNull() {
            addCriterion("default_val4 is null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4IsNotNull() {
            addCriterion("default_val4 is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4EqualTo(String value) {
            addCriterion("default_val4 =", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4NotEqualTo(String value) {
            addCriterion("default_val4 <>", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4GreaterThan(String value) {
            addCriterion("default_val4 >", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4GreaterThanOrEqualTo(String value) {
            addCriterion("default_val4 >=", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4LessThan(String value) {
            addCriterion("default_val4 <", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4LessThanOrEqualTo(String value) {
            addCriterion("default_val4 <=", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4Like(String value) {
            addCriterion("default_val4 like", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4NotLike(String value) {
            addCriterion("default_val4 not like", value, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4In(List<String> values) {
            addCriterion("default_val4 in", values, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4NotIn(List<String> values) {
            addCriterion("default_val4 not in", values, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4Between(String value1, String value2) {
            addCriterion("default_val4 between", value1, value2, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal4NotBetween(String value1, String value2) {
            addCriterion("default_val4 not between", value1, value2, "defaultVal4");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5IsNull() {
            addCriterion("default_val5 is null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5IsNotNull() {
            addCriterion("default_val5 is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5EqualTo(String value) {
            addCriterion("default_val5 =", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5NotEqualTo(String value) {
            addCriterion("default_val5 <>", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5GreaterThan(String value) {
            addCriterion("default_val5 >", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5GreaterThanOrEqualTo(String value) {
            addCriterion("default_val5 >=", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5LessThan(String value) {
            addCriterion("default_val5 <", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5LessThanOrEqualTo(String value) {
            addCriterion("default_val5 <=", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5Like(String value) {
            addCriterion("default_val5 like", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5NotLike(String value) {
            addCriterion("default_val5 not like", value, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5In(List<String> values) {
            addCriterion("default_val5 in", values, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5NotIn(List<String> values) {
            addCriterion("default_val5 not in", values, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5Between(String value1, String value2) {
            addCriterion("default_val5 between", value1, value2, "defaultVal5");
            return (Criteria) this;
        }

        public Criteria andDefaultVal5NotBetween(String value1, String value2) {
            addCriterion("default_val5 not between", value1, value2, "defaultVal5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andDefaultVal1LikeInsensitive(String value) {
            addCriterion("upper(default_val1) like", value.toUpperCase(), "defaultVal1");
            return this;
        }

        public Criteria andDefaultVal2LikeInsensitive(String value) {
            addCriterion("upper(default_val2) like", value.toUpperCase(), "defaultVal2");
            return this;
        }

        public Criteria andDefaultVal3LikeInsensitive(String value) {
            addCriterion("upper(default_val3) like", value.toUpperCase(), "defaultVal3");
            return this;
        }

        public Criteria andDefaultVal4LikeInsensitive(String value) {
            addCriterion("upper(default_val4) like", value.toUpperCase(), "defaultVal4");
            return this;
        }

        public Criteria andDefaultVal5LikeInsensitive(String value) {
            addCriterion("upper(default_val5) like", value.toUpperCase(), "defaultVal5");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}